
#ifndef __AT_CODESTR_H__
#define __AT_CODESTR_H__

#define AT_OK               "OK"
#define AT_ERROR            "ERROR"
#define AT_CONNECT          "CONNECT"

#define AT                  "AT\r\n"

#define AT_POWER_OFF        "AT+CPOF\r\n"
#define AT_POWER_OFF_ASK    "AT+CPOF?\r\n"

/** 基本命令 */
/** 设置DCE是否返回AT命令执行结果给DCT */
#define AT_ATQ_0            "ATQ0\r\n"
#define AT_ATQ_1            "ATQ1\r\n"

/** SIM命令 */
#define AT_CPIN_ASK         "AT+CPIN?\r\n"

/** 网络服务命令 */
#define AT_CREG_ASK         "AT+CREG?\r\n"
#define AT_CSQ              "AT+CSQ\r\n"

/** GPRS命令 */
#define AT_CGATT_ON         "AT+CGATT=1\r\n"
#define AT_CGATT_OFF        "AT+CGATT=0\r\n"
#define AT_CGATT_ASK        "AT+CGATT?\r\n"

#define AT_CGACT_ACT        "AT+CGACT=1,1\r\n"

#define AT_CMMUX_0          "AT+CMMUX=0\r\n"
#define AT_CMMODE_1         "AT+CMMODE=1\r\n"

#define AT_IPSTART_SERVER   "AT+IPSTART=\"TCP\",\"106.14.218.29\",8234\r\n"
#endif

